import ajax from '../utils/ajax.js'
import store from 'store'

// 获取有效秒杀场次
export const seckillList = () => {
	return ajax({
		url: `/base/user/session/effectiveList`,
		header: {
			authentication: store.getters.getUserInfo.token
		}
	})
}

// 获取有效秒杀场次
export const wxacodeunlimit = (data) => {
	return ajax({
		url: `/base/user/user/getCodeImage`,
		header: {
			authentication: store.getters.getUserInfo.token
		},
		data,
		method: 'POST'
	})
}